package com.liuliang.service;

import com.liuliang.entity.Student;
import org.springframework.data.domain.Page;

import java.util.List;

/**
 * 业务逻辑层：StudentService接口
 */
public interface StudentService {
    //查询所有
    List<Student> findAll();

    //通过id查询
    Student findById(Integer id);

    //新增和修改
    void save(Student student);

    //删除
    void delete(Integer id);

    //批量删除
    void batchDelete(List<Integer> ids);

    //分页条件查询
    Page<Student> findByPage(Integer pageNum, Integer pageSize, String name, String birthplace, String major);
}